home *** CD-ROM | disk | FTP | other *** search
- From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
- Date: Tue, 15 Feb 94 11:28:21 +0100
- Message-Id: <9402151028.AA11871@issan.informatik.uni-dortmund.de>
- To: nox@jelal.north.de
- In-Reply-To: <9402122329.AA00137@jelal.north.de> (message from Juergen Lock on Sun, 13 Feb 94 0:29:18 CET)
- Subject: Re: Inquiring cttys
-
- Juergen Lock <nox@jelal.north.de> writes:
-
- |> volatile struct stat sb;
-
- |> *(short *)&sb = fd; /* -1 for /dev/tty */
- |> if (r = Fcntl(procf, &sb, PFSTAT))
- |> error ...
- |> find device...
-
- |> (volatile seems necessary because of the gcc Fcntl binding(?), can this be
- |> fixed?)
-
- This should not be necessary with newer gcc's, where the pseudo
- register "memory" can be specified as being clobbered in the asm spec.
- I think this is taken care of in the current MiNTlibs.
-
- Andreas.
- --
- ----------------------------------------------------------------------
- Andreas Schwab "And now for something
- schwab@ls5.informatik.uni-dortmund.de completely different"
-